package cn.yj.netty.common;

/**
 * @author 永健
 * @since 2022-02-15 13:03
 */
public enum MessageType {

    /**
     * 例子
     */
    HEART_BEAT_PING("PING", "心跳PING"),
    HEART_BEAT_PONG("PONG", "心跳PONG"),
    TEST("0001", "测试");

    private String code;

    private String msg;

    MessageType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
